package com.ruoyi.platform.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.platform.mapper.FinancialRecordsMapper;
import com.ruoyi.platform.domain.FinancialRecords;
import com.ruoyi.platform.service.IFinancialRecordsService;

/**
 * 财务记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-21
 */
@Service
public class FinancialRecordsServiceImpl implements IFinancialRecordsService 
{
    @Autowired
    private FinancialRecordsMapper financialRecordsMapper;

    /**
     * 查询财务记录
     * 
     * @param recordId 财务记录主键
     * @return 财务记录
     */
    @Override
    public FinancialRecords selectFinancialRecordsByRecordId(String recordId)
    {
        return financialRecordsMapper.selectFinancialRecordsByRecordId(recordId);
    }

    /**
     * 查询财务记录列表
     * 
     * @param financialRecords 财务记录
     * @return 财务记录
     */
    @Override
    public List<FinancialRecords> selectFinancialRecordsList(FinancialRecords financialRecords)
    {
        return financialRecordsMapper.selectFinancialRecordsList(financialRecords);
    }

    /**
     * 新增财务记录
     * 
     * @param financialRecords 财务记录
     * @return 结果
     */
    @Override
    public int insertFinancialRecords(FinancialRecords financialRecords)
    {
        return financialRecordsMapper.insertFinancialRecords(financialRecords);
    }

    /**
     * 修改财务记录
     * 
     * @param financialRecords 财务记录
     * @return 结果
     */
    @Override
    public int updateFinancialRecords(FinancialRecords financialRecords)
    {
        return financialRecordsMapper.updateFinancialRecords(financialRecords);
    }

    /**
     * 批量删除财务记录
     * 
     * @param recordIds 需要删除的财务记录主键
     * @return 结果
     */
    @Override
    public int deleteFinancialRecordsByRecordIds(String[] recordIds)
    {
        return financialRecordsMapper.deleteFinancialRecordsByRecordIds(recordIds);
    }

    /**
     * 删除财务记录信息
     * 
     * @param recordId 财务记录主键
     * @return 结果
     */
    @Override
    public int deleteFinancialRecordsByRecordId(String recordId)
    {
        return financialRecordsMapper.deleteFinancialRecordsByRecordId(recordId);
    }
}
